<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
    <meta content="" name="description">
    <meta content="" name="author">

    <title>基本信息新增</title>
    <link th:href="@{/asserts/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/font-awesome.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/plugins/footable/footable.core.css}" rel="stylesheet">
    <link href="asserts/css/bootstrap-select.min.css" rel="stylesheet"
          th:href="@{/asserts/css/bootstrap-select.min.css}">
    <link th:href="@{/asserts/css/animate.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/style.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/js/layer/laydate/skins/default/laydate.css}" rel="stylesheet">
    <link th:href="@{/asserts/js/layer/laydate/need/laydate.css}" rel="stylesheet">


</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5 class="col-sm-10 padding-top-10">[[${orgBaseInfo!=null}?企业基本信息编辑:企业基本信息新增]]</h5>
                    <div class="col-sm-2 text-right"><a href="javascript:history.back(-1)">返回</a></div>
                </div>

                <div class="ibox-content">
                    <div class="tabs-container">

                        <div class="tab-content">
                            <form th:action="@{/orgbase/do}" th:method="post">
                                <input name="_method" th:if="${orgBaseInfo!=null}" type="hidden" value="PUT"/>
                                <input name="id" th:value="${orgBaseInfo!=null}?${orgBaseInfo.id}" type="hidden"/>
                                <div class="form-group row">

                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>境内/境外</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker jnwDict" data-live-search="false" name="domain" >
                                            <option value=''>请选择</option>
                                            <option value="IES_N#境内">
                                                境内
                                            </option>
                                            <option value="IES_W#境外">
                                                境外
                                            </option>
                                        </select>
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>单位类型</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker dwlxDict" data-live-search="false" name="unittype">
                                            <option value=''>请选择</option>
                                            <option value="UTF_Y#法人单位">
                                                法人单位
                                            </option>
                                            <option value="UTF_N#非法人单位">
                                                非法人单位
                                            </option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>新增类型</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker xzlxDict" data-live-search="false" name="newtype">
                                            <option value=''>请选择</option>
                                            <option value='AT_QT1#因收购或投资入股而获得控股权'>因收购或投资入股而获得控股权</option>
                                            <option value='AT_QT2#从国资委监管的其他央企无偿划入而获得控股权'>从国资委监管的其他央企无偿划入而获得控股权</option>
                                            <option value='AT_QTD2#从国资委监管的其他国企无偿划入而获得控股权'>从国资委监管的其他国企无偿划入而获得控股权</option>
                                            <option value='AT_QT3#从其他国有企业无偿划入而获得控股权'>从其他国有企业无偿划入而获得控股权</option>
                                            <option value='AT_QT4#从国资委监管的其他央企产权置换而获得控股权'>从国资委监管的其他央企产权置换而获得控股权</option>
                                            <option value='AT_QTD4#从国资委监管的其他国企产权置换而获得控股权'>从国资委监管的其他国企产权置换而获得控股权</option>
                                            <option value='AT_QT5#从其他国有企业产权置换而获得控股权'>从其他国有企业产权置换而获得控股权</option>
                                            <option value='AT_QT6#从国资委监管的其他央企处置而获得控股权'>从国资委监管的其他央企处置而获得控股权</option>
                                            <option value='AT_QTD6#从国资委监管的其他国企处置而获得控股权'>从国资委监管的其他国企处置而获得控股权</option>
                                            <option value='AT_QT7#从其他国有企业处置而获得控股权'>从其他国有企业处置而获得控股权</option>
                                            <option value='AT_QT8#新设合并新设'>新设合并新设</option>
                                            <option value='AT_QT9#解散分立新设'>解散分立新设</option>
                                            <option value='AT_QT10#存续分立新设'>存续分立新设</option>
                                            <option value='AT_QT11#其他经济行为新设'>其他经济行为新设</option>
                                            <option value='AT_QT12#其他'>其他</option>
                                            <option value='AT_QT13#投资新设'>投资新设</option>
                                        </select>
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >统一社会信用代码</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="creditcode" name="creditcode" placeholder="统一社会信用代码"
                                               th:placeholder="统一社会信用代码"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.creditcode}" type="text">
                                    </div>
                                </div>

                                <div class="form-group row">

                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>单位名称</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="unitname" name="unitname" placeholder="单位名称"
                                               th:placeholder="单位名称"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.unitname}" type="text">
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >企业编码</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="unitcode" name="unitcode" placeholder="企业编码"
                                               th:placeholder="企业编码"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.unitcode}" type="text">
                                    </div>

                                </div>

                                <div class="form-group row">

                                    <label class="col-sm-2 col-form-label my-font-bold" >单位简称</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="unitabbreviation" name="unitabbreviation" placeholder="单位简称"
                                               th:placeholder="请输入"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.unitabbreviation}" type="text">
                                    </div>

                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >英文全称</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="englishname" name="englishname" placeholder="英文全称"
                                               th:placeholder="英文全称"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.englishname}" type="text">
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >英文简称</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="englishabbreviation" name="englishabbreviation" placeholder="英文简称"
                                               th:placeholder="英文简称"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.englishabbreviation}" type="text">
                                    </div>

                                </div>

                                <div class="form-group row">

                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>组织形式</label>
                                    <div class="col-sm-10">
                                        <select class="selectpicker zzxsDict" data-live-search="false" id="organizationalbig" name="organizationalbig" onchange="findMid();">
                                            <option value="0">请选择</option>
                                            <option th:each="f:${zzxsDict}" th:text="${f.dicvalue}" th:value="${f.id}">
                                            </option>
                                        </select>
                                        <select class="selectpicker zzxsDict2" data-live-search="false" id="organizationalmid" name="organizationalmid" onchange="findSmal();">
                                        </select>
                                        <select class="selectpicker zzxsDict3" data-live-search="false" id="organizationalbigsmal" name="organizationalbigsmal">
                                        </select>
                                    </div>

                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >企业人数</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="numberpeople" name="numberpeople" placeholder="企业人数"
                                               th:placeholder="企业人数"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.numberpeople}" type="text">
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >成立日期</label>
                                    <div class="col-sm-4">
                                        <input class="laydate-icon form-control layer-date" id="establishmentdate" name="establishmentdate" th:placeholder="成立日期"
                                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.establishmentdate}" >
                                    </div>

                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >币种</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker bzDict" data-live-search="false" name="currency">
                                            <option value=''>请选择</option>
                                            <option value='CC_CNY#人民币'>人民币</option>
                                            <option value='CC_USD#美元'>美元</option>
                                            <option value='CC_EUR#欧元'>欧元</option>
                                            <option value='CC_GBP#英镑'>英镑</option>
                                            <option value='CC_AUD#澳元'>澳元</option>
                                            <option value='CC_CAD#加元'>加元</option>
                                            <option value='CC_JPY#日元'>日元</option>
                                            <option value='CC_HKD#港币'>港币</option>
                                            <option value='CC_INR#印度卢比'>印度卢比</option>
                                            <option value='CC_ZAR#南非兰特'>南非兰特</option>
                                            <option value='CC_TWD#新台币'>新台币</option>
                                            <option value='CC_MOP#澳门元'>澳门元</option>
                                            <option value='CC_KRW#韩元'>韩元</option>
                                            <option value='CC_THB#泰铢'>泰铢</option>
                                            <option value='CC_NZD#新西兰元'>新西兰元</option>
                                            <option value='CC_SGD#新加坡元'>新加坡元</option>
                                            <option value='CC_AED#阿联酋迪拉姆'>阿联酋迪拉姆</option>
                                            <option value='CC_AFN#阿富汗尼'>阿富汗尼</option>
                                            <option value='CC_ALL#阿尔巴尼列克'>阿尔巴尼列克</option>
                                            <option value='CC_AMD#亚美尼亚德拉姆'>亚美尼亚德拉姆</option>
                                            <option value='CC_ANG#荷兰盾'>荷兰盾</option>
                                            <option value='CC_AOA#安哥拉宽扎'>安哥拉宽扎</option>
                                            <option value='CC_ARS#阿根廷比索'>阿根廷比索</option>
                                            <option value='CC_AWG#阿鲁巴弗罗林'>阿鲁巴弗罗林</option>
                                            <option value='CC_AZN#阿塞拜疆马纳特'>阿塞拜疆马纳特</option>
                                            <option value='CC_BAM#波黑可兑换马克'>波黑可兑换马克</option>
                                            <option value='CC_BBD#巴巴多斯元'>巴巴多斯元</option>
                                            <option value='CC_BDT#孟加拉国塔卡'>孟加拉国塔卡</option>
                                            <option value='CC_BGN#保加利亚列弗'>保加利亚列弗</option>
                                            <option value='CC_BHD#巴林第纳尔'>巴林第纳尔</option>
                                            <option value='CC_BIF#布隆迪法郎'>布隆迪法郎</option>
                                            <option value='CC_BMD#百慕大元'>百慕大元</option>
                                            <option value='CC_BND#文莱元'>文莱元</option>
                                            <option value='CC_BOB#玻利维亚诺'>玻利维亚诺</option>
                                            <option value='CC_BRL#巴西雷亚尔'>巴西雷亚尔</option>
                                            <option value='CC_BTC#比特币'>比特币</option>
                                            <option value='CC_BWP#博茨瓦纳普拉'>博茨瓦纳普拉</option>
                                            <option value='CC_BYR#白俄罗斯卢布'>白俄罗斯卢布</option>
                                            <option value='CC_CDF#刚果法郎'>刚果法郎</option>
                                            <option value='CC_CHF#瑞士法郎'>瑞士法郎</option>
                                            <option value='CC_CLP#智利比索'>智利比索</option>
                                            <option value='CC_CNH#中国离岸人民币'>中国离岸人民币</option>
                                            <option value='CC_CRC#哥斯达黎加科朗'>哥斯达黎加科朗</option>
                                            <option value='CC_CUP#古巴比索'>古巴比索</option>
                                            <option value='CC_CYP#塞普路斯镑'>塞普路斯镑</option>
                                            <option value='CC_DEM#德国马克'>德国马克</option>
                                            <option value='CC_DJF#吉布提法郎'>吉布提法郎</option>
                                            <option value='CC_DKK#丹麦克朗'>丹麦克朗</option>
                                            <option value='CC_DZD#阿尔及利亚第纳尔'>阿尔及利亚第纳尔</option>
                                            <option value='CC_ECS#厄瓜多尔苏克雷'>厄瓜多尔苏克雷</option>
                                            <option value='CC_ERN#厄立特里亚纳克法'>厄立特里亚纳克法</option>
                                            <option value='CC_ETB#埃塞俄比亚比尔'>埃塞俄比亚比尔</option>
                                            <option value='CC_FRF#法国法郎'>法国法郎</option>
                                            <option value='CC_GEL#格鲁吉亚拉里'>格鲁吉亚拉里</option>
                                            <option value='CC_GHS#加纳塞地'>加纳塞地</option>
                                            <option value='CC_GIP#直布罗陀镑'>直布罗陀镑</option>
                                            <option value='CC_GNF#几内亚法郎'>几内亚法郎</option>
                                            <option value='CC_GYD#圭亚那元'>圭亚那元</option>
                                            <option value='CC_HNL#洪都拉斯伦皮拉'>洪都拉斯伦皮拉</option>
                                            <option value='CC_HRK#克罗地亚库纳'>克罗地亚库纳</option>
                                            <option value='CC_HUF#匈牙利福林'>匈牙利福林</option>
                                            <option value='CC_IEP#爱尔兰镑'>爱尔兰镑</option>
                                            <option value='CC_ILS#以色列新谢克尔'>以色列新谢克尔</option>
                                            <option value='CC_IQD#伊拉克第纳尔'>伊拉克第纳尔</option>
                                            <option value='CC_ISK#冰岛克郎'>冰岛克郎</option>
                                            <option value='CC_JMD#牙买加元'>牙买加元</option>
                                            <option value='CC_JOD#约旦第纳尔'>约旦第纳尔</option>
                                            <option value='CC_KGS#吉尔吉斯斯坦索姆'>吉尔吉斯斯坦索姆</option>
                                            <option value='CC_KMF#科摩罗法郎'>科摩罗法郎</option>
                                            <option value='CC_KPW#朝鲜元'>朝鲜元</option>
                                            <option value='CC_KYD#开曼群岛元'>开曼群岛元</option>
                                            <option value='CC_LAK#老挝基普'>老挝基普</option>
                                            <option value='CC_LBP#黎巴嫩镑'>黎巴嫩镑</option>
                                            <option value='CC_LRD#利比里亚元'>利比里亚元</option>
                                            <option value='CC_LSL#莱索托洛蒂'>莱索托洛蒂</option>
                                            <option value='CC_LVL#拉脱维亚拉特'>拉脱维亚拉特</option>
                                            <option value='CC_LYD#利比亚第纳尔'>利比亚第纳尔</option>
                                            <option value='CC_MAD#摩洛哥迪拉姆'>摩洛哥迪拉姆</option>
                                            <option value='CC_MGA#马达加斯加阿里亚里'>马达加斯加阿里亚里</option>
                                            <option value='CC_MMK#缅甸元'>缅甸元</option>
                                            <option value='CC_MNT#蒙古图格里克'>蒙古图格里克</option>
                                            <option value='CC_MUR#毛里求斯卢比'>毛里求斯卢比</option>
                                            <option value='CC_MVR#马尔代夫拉菲亚'>马尔代夫拉菲亚</option>
                                            <option value='CC_MWK#马拉维克瓦查'>马拉维克瓦查</option>
                                            <option value='CC_MXV#墨西哥(资金)'>墨西哥(资金)</option>
                                            <option value='CC_MZN#莫桑比克新梅蒂卡尔'>莫桑比克新梅蒂卡尔</option>
                                            <option value='CC_NGN#尼日利亚奈拉'>尼日利亚奈拉</option>
                                            <option value='CC_NIO#尼加拉瓜新科多巴'>尼加拉瓜新科多巴</option>
                                            <option value='CC_NPR#尼泊尔卢比'>尼泊尔卢比</option>
                                            <option value='CC_PAB#巴拿马巴波亚'>巴拿马巴波亚</option>
                                            <option value='CC_PGK#巴布亚新几内亚基那'>巴布亚新几内亚基那</option>
                                            <option value='CC_PKR#巴基斯坦卢比'>巴基斯坦卢比</option>
                                            <option value='CC_PLN#波兰兹罗提'>波兰兹罗提</option>
                                            <option value='CC_QAR#卡塔尔里亚尔'>卡塔尔里亚尔</option>
                                            <option value='CC_RON#罗马尼亚列伊'>罗马尼亚列伊</option>
                                            <option value='CC_RSD#塞尔维亚第纳尔'>塞尔维亚第纳尔</option>
                                            <option value='CC_RWF#卢旺达法郎'>卢旺达法郎</option>
                                            <option value='CC_SBD#所罗门群岛元'>所罗门群岛元</option>
                                            <option value='CC_SCR#塞舌尔卢比'>塞舌尔卢比</option>
                                            <option value='CC_SEK#瑞典克朗'>瑞典克朗</option>
                                            <option value='CC_SIT#斯洛文尼亚托拉尔'>斯洛文尼亚托拉尔</option>
                                            <option value='CC_SLL#塞拉利昂利昂'>塞拉利昂利昂</option>
                                            <option value='CC_SRD#苏里南元'>苏里南元</option>
                                            <option value='CC_STD#圣多美多布拉'>圣多美多布拉</option>
                                            <option value='CC_SVC#萨尔瓦多科朗'>萨尔瓦多科朗</option>
                                            <option value='CC_SYP#叙利亚镑'>叙利亚镑</option>
                                            <option value='CC_SZL#斯威士兰里兰吉尼'>斯威士兰里兰吉尼</option>
                                            <option value='CC_TJS#塔吉克斯坦索莫尼'>塔吉克斯坦索莫尼</option>
                                            <option value='CC_TMT#土库曼斯坦马纳特'>土库曼斯坦马纳特</option>
                                            <option value='CC_TND#突尼斯第纳尔'>突尼斯第纳尔</option>
                                            <option value='CC_TOP#汤加潘加'>汤加潘加</option>
                                            <option value='CC_TRY#土耳其里拉'>土耳其里拉</option>
                                            <option value='CC_TTD#特立尼达多巴哥元'>特立尼达多巴哥元</option>
                                            <option value='CC_TZS#坦桑尼亚先令'>坦桑尼亚先令</option>
                                            <option value='CC_UAH#乌克兰格里夫纳'>乌克兰格里夫纳</option>
                                            <option value='CC_UGX#乌干达先令'>乌干达先令</option>
                                            <option value='CC_UYU#乌拉圭比索'>乌拉圭比索</option>
                                            <option value='CC_UZS#乌兹别克斯坦苏姆'>乌兹别克斯坦苏姆</option>
                                            <option value='CC_VEF#委内瑞拉玻利瓦尔'>委内瑞拉玻利瓦尔</option>
                                            <option value='CC_VND#越南盾'>越南盾</option>
                                            <option value='CC_VUV#瓦努阿图瓦图'>瓦努阿图瓦图</option>
                                            <option value='CC_WST#萨摩亚塔拉'>萨摩亚塔拉</option>
                                            <option value='CC_XAF#中非法郎'>中非法郎</option>
                                            <option value='CC_XCD#东加勒比元'>东加勒比元</option>
                                            <option value='CC_XDR#IMF特别提款权'>IMF特别提款权</option>
                                            <option value='CC_XOF#西非法郎'>西非法郎</option>
                                            <option value='CC_XPF#太平洋法郎'>太平洋法郎</option>
                                            <option value='CC_YER#也门里亚尔'>也门里亚尔</option>
                                            <option value='CC_ZMW#赞比亚克瓦查'>赞比亚克瓦查</option>
                                            <option value='CC_ZWL#津巴布韦元'>津巴布韦元</option>
                                            <option value='CC_XAG#银价盎司'>银价盎司</option>
                                            <option value='CC_XAU#金价盎司'>金价盎司</option>
                                            <option value='CC_XCP#铜价盎司'>铜价盎司</option>
                                            <option value='CC_XPD#钯价盎司'>钯价盎司</option>
                                            <option value='CC_XPT#珀价盎司'>珀价盎司</option>
                                            <option value='CC_BSD#巴哈马元'>巴哈马元</option>
                                            <option value='CC_BTN#不丹努扎姆'>不丹努扎姆</option>
                                            <option value='CC_BZD#伯利兹元'>伯利兹元</option>
                                            <option value='CC_CLF#智利比索(基金)'>智利比索(基金)</option>
                                            <option value='CC_COP#哥伦比亚比索'>哥伦比亚比索</option>
                                            <option value='CC_CVE#佛得角埃斯库多'>佛得角埃斯库多</option>
                                            <option value='CC_CZK#捷克克朗'>捷克克朗</option>
                                            <option value='CC_DOP#多米尼加比索'>多米尼加比索</option>
                                            <option value='CC_EGP#埃及镑'>埃及镑</option>
                                            <option value='CC_FJD#斐济元'>斐济元</option>
                                            <option value='CC_FKP#福克兰群岛镑'>福克兰群岛镑</option>
                                            <option value='CC_GMD#冈比亚达拉西'>冈比亚达拉西</option>
                                            <option value='CC_GTQ#危地马拉格查尔'>危地马拉格查尔</option>
                                            <option value='CC_HTG#海地古德'>海地古德</option>
                                            <option value='CC_IDR#印度尼西亚卢比'>印度尼西亚卢比</option>
                                            <option value='CC_IRR#伊朗里亚尔'>伊朗里亚尔</option>
                                            <option value='CC_ITL#意大利里拉'>意大利里拉</option>
                                            <option value='CC_KES#肯尼亚先令'>肯尼亚先令</option>
                                            <option value='CC_KHR#柬埔寨瑞尔'>柬埔寨瑞尔</option>
                                            <option value='CC_KWD#科威特第纳尔'>科威特第纳尔</option>
                                            <option value='CC_KZT#哈萨克斯坦坚戈'>哈萨克斯坦坚戈</option>
                                            <option value='CC_LKR#斯里兰卡卢比'>斯里兰卡卢比</option>
                                            <option value='CC_LTL#立陶宛立特'>立陶宛立特</option>
                                            <option value='CC_MDL#摩尔多瓦列伊'>摩尔多瓦列伊</option>
                                            <option value='CC_MKD#马其顿代纳尔'>马其顿代纳尔</option>
                                            <option value='CC_MRO#毛里塔尼亚乌吉亚'>毛里塔尼亚乌吉亚</option>
                                            <option value='CC_MXN#墨西哥比索'>墨西哥比索</option>
                                            <option value='CC_MYR#林吉特'>林吉特</option>
                                            <option value='CC_NAD#纳米比亚元'>纳米比亚元</option>
                                            <option value='CC_NOK#挪威克朗'>挪威克朗</option>
                                            <option value='CC_OMR#阿曼里亚尔'>阿曼里亚尔</option>
                                            <option value='CC_PEN#秘鲁新索尔'>秘鲁新索尔</option>
                                            <option value='CC_PHP#菲律宾比索'>菲律宾比索</option>
                                            <option value='CC_PYG#巴拉圭瓜拉尼'>巴拉圭瓜拉尼</option>
                                            <option value='CC_RUB#俄罗斯卢布'>俄罗斯卢布</option>
                                            <option value='CC_SAR#沙特里亚尔'>沙特里亚尔</option>
                                            <option value='CC_SDG#苏丹磅'>苏丹磅</option>
                                            <option value='CC_SHP#圣赫勒拿镑'>圣赫勒拿镑</option>
                                            <option value='CC_SOS#索马里先令'>索马里先令</option>
                                        </select>
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >注册资本</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="capital" name="capital" placeholder="注册资本"
                                               th:placeholder="注册资本"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.capital}" type="text">
                                    </div>

                                </div>


                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>是否上市</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker sfssDict" data-live-search="false" name="listed">
                                            <option value=''>请选择</option>
                                            <option value='0'>是</option>
                                            <option value='1'>否</option>
                                        </select>
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>空壳公司类别</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker kkgslbDict" data-live-search="false" name="shelltype">
                                            <option value=''>请选择</option>
                                            <option value='ST_TSMD#特殊目的公司'>特殊目的公司</option>
                                            <option value='ST_FKG#非空壳公司'>非空壳公司</option>
                                            <option value='ST_YL#历史遗留问题公司'>历史遗留问题公司</option>
                                        </select>
                                    </div>

                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>企业类型</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker qylxDict" data-live-search="false" name="enterprisetype">
                                            <option value=''>请选择</option>
                                            <option value='ET_QZ#国有全资企业'>国有全资企业</option>
                                            <option value='ET_JQKG#国有控股企业'>国有控股企业</option>
                                            <option value='ET_SJKZ#国有实际控制企业'>国有实际控制企业</option>
                                            <option value='ET_CG#国有参股企业'>国有参股企业</option>
                                            <option value='ET_DZ#国有独资企业'>国有独资企业</option>
                                            <option value='ET_SY#事业单位'>事业单位</option>
                                            <option value='ET_QT#其他'>其他</option>
                                        </select>
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>法定代表人</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="legal" name="legal" placeholder="法定代表人"
                                               th:placeholder="法定代表人"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.legal}" type="text">
                                    </div>
                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >官网</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="website" name="website" placeholder="官网"
                                               th:placeholder="官网"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.website}" type="text">
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >联系电话</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="phone" name="phone" placeholder="联系电话"
                                               th:placeholder="联系电话"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.phone}" type="text">
                                    </div>

                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="clr"></div>
                                <h4>单位地址信息</h4>
                                <div class="clr"></div>
                                <div class="clr"></div>
                                <div class="clr"></div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>所属大洲</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker ssdzDict" data-live-search="false" id="continent" name="continent" onchange="findCountry();">
                                            <option value="0">请选择</option>
                                            <option th:each="f:${ssdzDict}" th:text="${f.dicvalue}" th:value="${f.id}">
                                                Choose...
                                            </option>
                                        </select>
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>所属国家</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker country" data-live-search="false" id="country" name="country" onchange="findProvince();">
                                            <option value="0">请选择</option>
                                        </select>
                                    </div>

                                </div>
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>所在地区</label>
                                    <div class="col-sm-10">
                                        <select class="selectpicker province" data-live-search="false" id="province" name="province" onchange="findCity();">
                                        </select>
                                        <select class="selectpicker city" data-live-search="false" id="city" name="city" onchange="findCounty();">
                                        </select>
                                        <select class="selectpicker county" data-live-search="false" id="county" name="county">
                                        </select>
                                    </div>

                                </div>
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >注册地址</label>
                                    <div class="col-sm-10">
                                        <input class="form-control" id="address" name="address" placeholder="注册地址"
                                               th:placeholder="注册地址"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.address}" type="text">
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="clr"></div>
                                <h4>法人层级信息</h4>
                                <div class="clr"></div>
                                <div class="clr"></div>
                                <div class="clr"></div>
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>上级控股单位</label>
                                    <div class="col-sm-4">
                                        <input id="hdsuperiorholdingunit" name="superiorholdingunitid" type="hidden">
                                        <input class="form-control" id="superiorholdingunit" name="superiorholdingunit" placeholder="上级控股单位"
                                               th:placeholder="上级控股单位"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.superiorholdingunit}" type="text" readonly="readonly">
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >本单位法人层级</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="legallevel" name="legallevel" placeholder="本单位法人层级"
                                               th:placeholder="本单位法人层级"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.legallevel}" type="text" readonly="readonly">
                                    </div>

                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>上级控股比例%</label>
                                    <div class="col-sm-10">
                                        <input class="form-control" id="holdingratio" name="holdingratio" placeholder="上级控股比例"
                                               th:placeholder="上级控股比例"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.holdingratio}" type="text">
                                    </div>

                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="clr"></div>
                                <h4>管理层级信息</h4>
                                <div class="clr"></div>
                                <div class="clr"></div>
                                <div class="clr"></div>
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>上级管理单位</label>
                                    <div class="col-sm-4">
                                        <input id="hdsuperiormanagementunit" name="superiormanagementunitid" type="hidden">
                                        <input class="form-control" id="superiormanagementunit" name="superiormanagementunit" placeholder="上级管理单位"
                                               th:placeholder="上级管理单位"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.superiormanagementunit}" type="text" readonly="readonly">
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >本单位管理层级</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="managelevel" name="managelevel" placeholder="本单位管理层级"
                                               th:placeholder="本单位管理层级"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.managelevel}" type="text" readonly="readonly">
                                    </div>
                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="clr"></div>
                                <h4>经营状况信息</h4>
                                <div class="clr"></div>
                                <div class="clr"></div>
                                <div class="clr"></div>
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>所属行业</label>
                                    <div class="col-sm-10">
                                        <textarea cols="120" rows="5" id="industry" name="industry" th:text="${orgBaseInfo!=null}?${orgBaseInfo.industry}"></textarea>
                                    </div>

                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>经营范围</label>
                                    <div class="col-sm-10">
                                        <textarea cols="120" rows="5" id="businessscope" name="businessscope" th:text="${orgBaseInfo!=null}?${orgBaseInfo.businessscope}"></textarea>
                                    </div>

                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >经营规模</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker jygmDict" data-live-search="false" name="businessscale">
                                            <option value=''>请选择</option>
                                            <option value='MS_D#大型'>大型</option>
                                            <option value='MS_Z#中型'>中型</option>
                                            <option value='MS_X#小型'>小型</option>
                                            <option value='MS_W#微型'>微型</option>
                                        </select>
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >经营状态</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker jyztDict" data-live-search="false" name="businessstatus">
                                            <option value=''>请选择</option>
                                            <option value='MSS_KY#开业'>开业</option>
                                            <option value='MSS_ZY#在业'>在业</option>
                                            <option value='MSS_ZYKYQY#在营（开业）企业'>在营（开业）企业</option>
                                            <option value='MSS_CX#存续'>存续</option>
                                            <option value='MSS_CXZKZ#存续（在营、开业、在册）'>存续（在营、开业、在册）</option>
                                            <option value='MSS_TY#停业'>停业</option>
                                            <option value='MSS_QS#清算'>清算</option>
                                            <option value='MSS_QR#迁入'>迁入</option>
                                            <option value='MSS_QC#迁出'>迁出</option>
                                            <option value='MSS_QWSW#迁往市外'>迁往市外</option>
                                            <option value='MSS_DX#吊销'>吊销</option>
                                            <option value='MSS_DXQY#吊销企业'>吊销企业</option>
                                            <option value='MSS_DXBZX#吊销并注销'>吊销并注销</option>
                                            <option value='MSS_DXYZX#吊销，已注销'>吊销，已注销</option>
                                            <option value='MSS_DXWZX#吊销，未注销'>吊销，未注销</option>
                                            <option value='MSS_ZX#注销'>注销</option>
                                            <option value='MSS_ZXQY#注销企业'>注销企业</option>
                                            <option value='MSS_QT#其他'>其他</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >是否平台公司</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker sfptgsDict" data-live-search="false" name="isplatform">
                                            <option value=''>请选择</option>
                                            <option value='0'>是</option>
                                            <option value='1'>否</option>
                                        </select>
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" ><span style="color:red;">*</span>是否纳入决算</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker sfnrjsDict" data-live-search="false" name="finalaccounts">
                                            <option value=''>请选择</option>
                                            <option value='0'>是</option>
                                            <option value='1'>否</option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >经营期限自</label>
                                    <div class="col-sm-4">
                                        <input class="laydate-icon form-control layer-date" id="operationstartdate" name="operationstartdate" th:placeholder="成立日期"
                                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.operationstartdate}" >
                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >经营期限至</label>
                                    <div class="col-sm-4">
                                        <input class="laydate-icon form-control layer-date" id="operationenddate" name="operationenddate" th:placeholder="成立日期"
                                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.operationenddate}" >
                                    </div>
                                </div>


                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >创建时间</label>
                                    <div class="col-sm-4">
                                        <input class="laydate-icon form-control layer-date" id="creationdate" name="creationdate" th:placeholder="成立日期"
                                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.creationdate}" >

                                    </div>

                                    <label class="col-sm-2 col-form-label my-font-bold" >变更时间</label>
                                    <div class="col-sm-4">
                                        <input class="laydate-icon form-control layer-date" id="updatedate" name="updatedate" th:placeholder="成立日期"
                                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                               th:value="${orgBaseInfo!=null}?${orgBaseInfo.updatedate}" >
                                    </div>
                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >注销类型</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker zxlxDict" data-live-search="false" name="cancellationtype">
                                            <option value=''>请选择</option>
                                            <option value='IS_CANCEL_UNIT_YBSG#因被收购或股权转让注销'>因被收购或股权转让注销</option>
                                            <option value='IS_CANCEL_UNIT_WCHCD1#无偿划出给地方国资委监管的其他国企而取消控股权'>无偿划出给地方国资委监管的其他国企而取消控股权</option>
                                            <option value='IS_CANCEL_UNIT_WCHC2#无偿划出给其他国有企业而取消控股权'>无偿划出给其他国有企业而取消控股权</option>
                                            <option value='IS_CANCEL_UNIT_CQZHD1#产权置换给地方国资委监管的其他国企而取消控股权'>产权置换给地方国资委监管的其他国企而取消控股权</option>
                                            <option value='IS_CANCEL_UNIT_CQZH2#产权置换给其他国有企业而取消控股权'>产权置换给其他国有企业而取消控股权</option>
                                            <option value='IS_CANCEL_UNIT_CZGGD#处置给地方国资委监管的其他国企而取消控股权'>处置给地方国资委监管的其他国企而取消控股权</option>
                                            <option value='IS_CANCEL_UNIT_CZGQ#处置给其他国有企业而取消控股权'>处置给其他国有企业而取消控股权</option>
                                            <option value='IS_CANCEL_UNIT_XSHB1#新设合并注销'>新设合并注销</option>
                                            <option value='IS_CANCEL_UNIT_XSHB2#吸收合并注销'>吸收合并注销</option>
                                            <option value='IS_CANCEL_UNIT_JSFL#解散或分立注销'>解散或分立注销</option>
                                            <option value='IS_CANCEL_UNIT_ZGF#子改分'>子改分</option>
                                            <option value='IS_CANCEL_UNIT_PCQS#破产清算'>破产清算</option>
                                            <option value='IS_CANCEL_UNIT_GSZX#工商注销'>工商注销</option>
                                            <option value='IS_CANCEL_UNIT_QTJJ#其他经济行为注销'>其他经济行为注销</option>
                                            <option value='IS_CANCEL_UNIT_QT#其他'>其他</option>
                                            <option value='IS_CANCEL_UNIT_WDZX#误登注销'>误登注销</option>
                                        </select>
                                    </div>

                                </div>
                                <div class="clr"></div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group row" style="text-align: center">
                                    <div class="col-md-12" >
                                        <button class="btn btn-primary btn-sm badge-pill fa fa-save" type="submit">
                                            保存
                                        </button>
                                        <button class="btn btn-sm badge-pill fa fa-delicious" type="button">
                                            取消
                                        </button>
                                    </div>

                                </div>

                            </form>
                        </div>
                    </div>

                    <div class="clr"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--必须在bootstrap前引用-->
<script src="asserts/js/jquery.min.js" th:src="@{/asserts/js/jquery.min.js}" type="text/javascript"></script>
<script src="asserts/js/bootstrap.min.js" th:src="@{/asserts/js/bootstrap.min.js}" type="text/javascript"></script>
<!-- Graphs -->
<script th:replace="common/myJs::myCommonJs"></script>
<script th:src="@{/asserts/js/layer/laydate/laydate.js}" type="text/javascript"></script>
<script src="asserts/js/layer/layer.min.js" th:src="@{/asserts/js/layer/layer.min.js}" type="text/javascript"></script>
<script src="asserts/js/bootstrap-table/bootstrap-table.min.js"
        th:src="@{/asserts/js/bootstrap-table/bootstrap-table.min.js}" type="text/javascript"></script>
<script src="asserts/js/bootstrap-table/locale/bootstrap-table-zh-CN.js" th:if="${session.lang=='zh_CN'}"
        th:src="@{/asserts/js/bootstrap-table/locale/bootstrap-table-zh-CN.js}" type="text/javascript"></script>
<script src="asserts/js/bootstrap-select.min.js" th:src="@{/asserts/js/bootstrap-select.min.js}"
        type="text/javascript"></script>
<script th:src="@{/asserts/js/tree-view/js/bootstrap-treeview-cl.js?v=1.1}" type="text/javascript"></script>


<script th:inline="javascript">


    $(function(){
        let obj = [[${orgBaseInfo}]];

        $('.jnwDict').selectpicker('val', obj.domain+'#'+obj.domainName);
        $('.dwlxDict').selectpicker('val', obj.unittype+'#'+obj.unittypeName);
        $('.xzlxDict').selectpicker('val', obj.newtype+'#'+obj.newtypeName);

        $('.zzxsDict').selectpicker('val', obj.organizationalbig);
        findMid();

        $('.zzxsDict2').selectpicker('val', obj.organizationalmid);

        findSmal();
        $('.zzxsDict3').selectpicker('val', obj.organizationalbigsmal);

        $('.bzDict').selectpicker('val', obj.currency+'#'+obj.currencyName);
        $('.sfssDict').selectpicker('val', obj.listed);
        $('.kkgslbDict').selectpicker('val', obj.shelltype+'#'+obj.shelltypeName);
        $('.qylxDict').selectpicker('val', obj.enterprisetype+'#'+obj.enterprisetypeName);
        $('.ssdzDict').selectpicker('val', obj.continent);

        findCountry();
        $('.country').selectpicker('val', obj.country);

        findProvince();
        $('.province').selectpicker('val', obj.province);

        findCity();
        $('.city').selectpicker('val', obj.city);

        findCounty();
        $('.county').selectpicker('val', obj.county);

        $('.jygmDict').selectpicker('val', obj.businessscale+'#'+obj.businessscaleName);
        $('.jyztDict').selectpicker('val', obj.businessstatus+'#'+obj.businessstatusName);
        $('.sfptgsDict').selectpicker('val', obj.isplatform);
        $('.sfnrjsDict').selectpicker('val', obj.finalaccounts);
        $('.zxlxDict').selectpicker('val', obj.cancellationtype+'#'+obj.cancellationtypeName);

    });

    function findMid(){
        var id = $("#organizationalbig").val();
        $.ajaxSettings.async = false;
        $.get("findPid", {id: id},
            function(data){
                //清空
                $("#organizationalmid").empty();
                $("#organizationalbigsmal").empty();

                var json = eval('(' + data + ')');
                $("#organizationalmid").append("<option value=''>请选择</option>")
                for(var i=0;i<json.length;i++){
                    $("#organizationalmid").append("<option value='"+json[i].id+"'>"+json[i].dicvalue+"</option>")
                }

                $("#organizationalmid").selectpicker('refresh');
                $("#organizationalbigsmal").selectpicker('refresh');
            });
    }

    function findSmal(){

        var id = $("#organizationalmid").val();
        $.ajaxSettings.async = false;
        $.get("findPid", {id: id},
            function(data){
                $("#organizationalbigsmal").empty();
                var json = eval('(' + data + ')');
                $("#organizationalbigsmal").append("<option value=''>请选择</option>")
                for(var i=0;i<json.length;i++){
                    $("#organizationalbigsmal").append("<option value='"+json[i].id+"'>"+json[i].dicvalue+"</option>")
                }
                $("#organizationalbigsmal").selectpicker('refresh');
            });
    }


    function findCountry(){
        var id = $("#continent").val();
        $.ajaxSettings.async = false;
        $.get("findPid", {id: id},
            function(data){

                $("#country").empty();
                $("#province").empty();
                $("#city").empty();
                $("#county").empty();

                var json = eval('(' + data + ')');
                $("#country").append("<option value=''>请选择</option>")
                for(var i=0;i<json.length;i++){
                    $("#country").append("<option value='"+json[i].id+"'>"+json[i].dicvalue+"</option>")
                }

                $("#country").selectpicker('refresh');
                $("#province").selectpicker('refresh');
                $("#city").selectpicker('refresh');
                $("#county").selectpicker('refresh');

            });
    }

    function findProvince(){
        var id = $("#country").val();
        $.ajaxSettings.async = false;
        $.get("findPid", {id: id},
            function(data){

                $("#province").empty();
                $("#city").empty();
                $("#county").empty();

                var json = eval('(' + data + ')');
                $("#province").append("<option value=''>请选择</option>");
                for(var i=0;i<json.length;i++){
                    $("#province").append("<option value='"+json[i].id+"'>"+json[i].dicvalue+"</option>")
                }

                $("#province").selectpicker('refresh');
                $("#city").selectpicker('refresh');
                $("#county").selectpicker('refresh');
            });
    }

    function findCity(){
        var id = $("#province").val();
        $.ajaxSettings.async = false;
        $.get("findPid", {id: id},
            function(data){

                $("#city").empty();
                $("#county").empty();

                var json = eval('(' + data + ')');
                $("#city").append("<option value=''>请选择</option>");
                for(var i=0;i<json.length;i++){
                    $("#city").append("<option value='"+json[i].id+"'>"+json[i].dicvalue+"</option>")
                }

                $("#city").selectpicker('refresh');
                $("#county").selectpicker('refresh');
            });
    }

    function findCounty(){
        var id = $("#city").val();
        $.ajaxSettings.async = false;
        $.get("findPid", {id: id},
            function(data){
                $("#county").empty();
                var json = eval('(' + data + ')');
                $("#county").append("<option value=''>请选择</option>");
                for(var i=0;i<json.length;i++){
                    $("#county").append("<option value='"+json[i].id+"'>"+json[i].dicvalue+"</option>")
                }
                $("#county").selectpicker('refresh');
            });
    }

    //选择上级单位弹窗
    $('#superiorholdingunit').on('click', function () {
        createTable();
        layer.open({
            title: '选择上级单位', //标题
            type: 1,
            area: ['900px', '400px'],
            content: $('#sjSelectionBox'), //这里content是一个DOM，注意：最好该元素要存放在body最外层，否则可能被其它的相对元素所影响
            btn: ['保存', '关闭'],
            yes: function (index, layero) {
                $('#legallevel').val(selectLevel);
                $('#hdsuperiorholdingunit').val(selectionIds);
                $('#superiorholdingunit').val(selectionNames);
                //按钮【提交】的回调
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            },
            btn2: function (index, layero) {
                //按钮【取消】的回调
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    });

    //选择管理单位弹窗
    $('#superiormanagementunit').on('click', function () {

        createSTable();

        layer.open({
            title: '选择上级管理单位', //标题
            type: 1,
            area: ['900px', '400px'],
            content: $('#glSelectionBox'), //这里content是一个DOM，注意：最好该元素要存放在body最外层，否则可能被其它的相对元素所影响
            btn: ['保存', '关闭'],
            yes: function (index, layero) {
                $('#hdsuperiormanagementunit').val(sselectionIds);
                $('#superiormanagementunit').val(sselectionNames);
                //按钮【提交】的回调
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            },
            btn2: function (index, layero) {
                //按钮【取消】的回调
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    });

    //选择所属行业
    // $('#industry').on('click', function () {
    //     getTree();
    //     layer.open({
    //         title: '选择上级管理单位', //标题
    //         type: 1,
    //         area: ['900px', '400px'],
    //         content: $('#treeSelectionBox'), //这里content是一个DOM，注意：最好该元素要存放在body最外层，否则可能被其它的相对元素所影响
    //         btn: ['保存', '关闭'],
    //         yes: function (index, layero) {
    //             let a = $('#tree').treeview('getChecked');
    //             if (!a || a.length > 5) {
    //                 layer.alert('<em style=\'color:red\'>行业最多选择5个！<em>')
    //                 return;
    //             }
    //             let hangye = '';
    //             for (let i = 0; i < a.length; i++) {
    //                 if(i==a.length-1){
    //                     hangye += a[i].text;
    //                 }else{
    //                     hangye += a[i].text + ',';
    //                 }
    //             }
    //             $('#industry').val(hangye);
    //
    //             layer.close(index); //如果设定了yes回调，需进行手工关闭
    //         },
    //         btn2: function (index, layero) {
    //             //按钮【取消】的回调
    //             layer.close(index); //如果设定了yes回调，需进行手工关闭
    //         }
    //     });
    // });


</script>

</body>
</html>

<!--Describe：选择上级控股-Start-->
<div id="sjSelectionBox" style="display: none; width: 875px;margin-left: 10px;">
    <div class="ibox-content">
        <div class="col-sm-12 pd-lr-0">
            <div class="input-group">
                <input type="text" id="sunitname" name="sunitname" placeholder="企业名称" class="input-sm form-control"> <span
                    class="input-group-btn">
                    <button type="button" class="btn btn-sm btn-primary" onclick="createTable()"> 搜索</button> </span>
            </div>
        </div>

        <div class="col-sm-12 pd-lr-0" style="height: 25px"></div>

        <!--bootsrap表格带分页 Start-->
        <div class="table-responsive col-sm-12 box-border pd-lr-0 margin-top-20">
            <table id="table">
            </table>
        </div>
        <script type="text/javascript">
            var selectionIds = [];  //保存选中ids
            var selectionNames = [];
            var selectLevel=[];

            function createTable() {
                let url = '[[@{/orgbase/list}]]'
                $("#table").bootstrapTable('destroy');
                $("#table").bootstrapTable({
                    url: url,        //请求后台的URL（*）
                    method: 'post',                      //请求方式（*）
                    contentType: "application/x-www-form-urlencoded",
                    pagination: true,                   //是否显示分页（*）
                    cache: false,
                    pageSize: 10,//每页一条数据
                    striped: true,  //表格显示条纹
                    dataField: "list",
                    queryParamsType: "undefined",
                    singleSelect: true,
                    responseHandler: responseHandler,
                    queryParams: function queryParams(params) {   //设置查询参数
                        var param = {
                            pageNumber: params.pageNumber,
                            pageSize: params.pageSize,
                            unitname: $("#sunitname").val(),
                            unittype:1 //法人单位
                        };
                        return param;
                    },
                    sidePagination: 'server',
                    pageNumber: 1,
                    columns: [{
                        field: "id",
                        visible: false
                    }, {
                        field: "checkStatus",
                        checkbox: true,
                    }, {
                        field: "unitname",
                        title: "单位名称"
                    }, {
                        field: "domain",
                        title: "境内/境外"
                    }, {
                        field: "x",
                        title: "法人层级"
                    }]
                });

                $("#table").on('check.bs.table check-all.bs.table uncheck.bs.table uncheck-all.bs.table', function (e, list) {
                    selectionIds = list.id;
                    selectionNames = list.unitname;
                    selectLevel = list.legallevel;
                });

                //表格分页之前处理多选框数据
                function responseHandler(res) {
                    $.each(res.list, function (i, list) {
                        list.checkStatus = $.inArray(list.id, selectionIds) != -1;  //判断当前行的数据id是否存在与选中的数组，存在则将多选框状态变为true
                    });
                    return res;
                }
            }

        </script>
        <!--bootsrap表格带分页 Start-->
    </div>
</div>
<!--Describe：选择上级控股-End-->

<!--Describe：选择上级控股-Start-->
<div id="glSelectionBox" style="display: none; width: 875px;margin-left: 10px;">
    <div class="ibox-content">
        <div class="col-sm-12 pd-lr-0">
            <div class="input-group">
                <input type="text" id="ssunitname" name="ssunitname" placeholder="企业名称" class="input-sm form-control"> <span
                    class="input-group-btn">
                    <button type="button" class="btn btn-sm btn-primary" onclick="createSTable()"> 搜索</button> </span>
            </div>
        </div>

        <div class="col-sm-12 pd-lr-0" style="height: 25px"></div>

        <!--bootsrap表格带分页 Start-->
        <div class="table-responsive col-sm-12 box-border pd-lr-0 margin-top-20">
            <table id="table2">
            </table>
        </div>
        <script type="text/javascript">
            var sselectionIds = [];  //保存选中ids
            var sselectionNames = [];

            function createSTable() {
                let url = '[[@{/orgbase/list}]]'
                $("#table2").bootstrapTable('destroy');
                $("#table2").bootstrapTable({
                    url: url,        //请求后台的URL（*）
                    method: 'post',                      //请求方式（*）
                    contentType: "application/x-www-form-urlencoded",
                    pagination: true,                   //是否显示分页（*）
                    cache: false,
                    pageSize: 10,//每页一条数据
                    striped: true,  //表格显示条纹
                    dataField: "list",
                    queryParamsType: "undefined",
                    singleSelect: true,
                    responseHandler: responseHandler,
                    queryParams: function queryParams(params) {   //设置查询参数
                        var param = {
                            pageNumber: params.pageNumber,
                            pageSize: params.pageSize,
                            unitname: $("#ssunitname").val()
                        };
                        return param;
                    },
                    sidePagination: 'server',
                    pageNumber: 1,
                    columns: [{
                        field: "id",
                        visible: false
                    }, {
                        field: "checkStatus",
                        checkbox: true,
                    }, {
                        field: "unitname",
                        title: "单位名称"
                    }, {
                        field: "domain",
                        title: "境内/境外"
                    }, {
                        field: "x",
                        title: "管理层级"
                    }]
                });

                $("#table2").on('check.bs.table check-all.bs.table uncheck.bs.table uncheck-all.bs.table', function (e, list) {
                    sselectionIds = list.id;
                    sselectionNames = list.unitname;
                });

                //表格分页之前处理多选框数据
                function responseHandler(res) {
                    $.each(res.list, function (i, list) {
                        list.checkStatus = $.inArray(list.id, sselectionIds) != -1;  //判断当前行的数据id是否存在与选中的数组，存在则将多选框状态变为true
                    });
                    return res;
                }
            }

        </script>
        <!--bootsrap表格带分页 Start-->
    </div>
</div>
<!--Describe：选择上级控股-End-->

<!--Describe：选择上级控股-Start-->
<div id="treeSelectionBox" style="display: none; width: 875px;margin-left: 10px;">
    <div class="ibox-content">
        <div class="col-sm-12 pd-lr-0">
            <div class="input-group">
                <input type="text" id="sdicvalue" name="sdicvalue" placeholder="行业名称" class="input-sm form-control"> <span
                    class="input-group-btn">
                    <button type="button" class="btn btn-sm btn-primary" onclick="getTree2();"> 搜索</button> &nbsp;&nbsp;&nbsp;
                    <button type="button" class="btn btn-sm" onclick="getTree();"> 重置</button>
            </span>
            </div>
        </div>

        <div class="col-sm-12 pd-lr-0" style="height: 25px"></div>

        <!--bootsrap表格带分页 Start-->
        <div class="table-responsive col-sm-12 box-border pd-lr-0 margin-top-20">
            <div class="col-sm-12 " id="tree">
            </div>
        </div>

        <!--bootsrap表格带分页 Start-->
    </div>
    <script>
        //创建树
        function getTree() {
            $.ajax({
                url: "findTree",
                type: "get",
                success: function (data) {
                    data = eval('(' + data + ')');
                    resolve(data)
                },
                error: function (data) {
                }
            });
        }

        function getTree2() {
            $.ajax({
                url: 'findTree',
                type: "get",
                data: "dicvalue=" + $("#sdicvalue").val(),
                success: function (data) {
                    data = eval('(' + data + ')');
                    resolve2(data);
                }
            });
        }

        function resolve(data) {
            $('#tree').treeview({
                collapseIcon: "fa fa-minus",
                nodeIcon: "fa fa-building-o",
                emptyIcon: "",
                showIcon: true,
                levels: 1,
                expandIcon: "fa fa-plus",
                showCheckbox: true,
                multiSelect: true,
                data: data,
                showTags: true,
                onNodeChecked: nodeChecked,
                onNodeUnchecked: nodeUnchecked,
                onNodeExpanded: function (event, data) {
                    let id = data['nodeId'];		//获取节点的nodeid （nodeid是treeview自动生成的，每个节点不同）
                    $.ajax({					//异步加载当前节点的子节点数据
                        type: "post",
                        url: "getByParent",
                        async: false,
                        dataType: 'json',
                        data: 'parentId=' + data['id'],
                        success: function (result) {
                            let arr = [];
                            $("#tree").treeview("deleteChildrenNode", id);
                            for (var i = 0; i < result.length; i++) {
                                //result[i]的格式如下图
                                arr.push(result[i]);
                            }
                            $("#tree").treeview("addNode", [id, {node: arr, silent: true}]);
                        }
                    })
                }
            });
        }

        function resolve2(data) {
            $('#tree').treeview({
                collapseIcon: "fa fa-minus",
                nodeIcon: "fa fa-building-o",
                emptyIcon: "",
                showIcon: true,
                levels: 8,
                expandIcon: "fa fa-plus",
                showCheckbox: true,
                multiSelect: true,
                data: data,
                showTags: true,
                onNodeChecked: nodeChecked,
                onNodeUnchecked: nodeUnchecked
            });
        }

        var nodeCheckedSilent = false;

        function nodeChecked(event, node) {
            if (nodeCheckedSilent) {
                return;
            }
            nodeCheckedSilent = true;
            checkAllSon(node);
            nodeCheckedSilent = false;
        }

        let nodeUncheckedSilent = false;

        function nodeUnchecked(event, node) {
            if (nodeUncheckedSilent)
                return;
            nodeUncheckedSilent = true;
            uncheckAllSon(node);
            nodeUncheckedSilent = false;
        }

        //级联选中所有子节点
        function checkAllSon(node) {
            $('#tree').treeview('checkNode', node.nodeId, {
                silent: true
            });
            if (node.nodes != null && node.nodes.length > 0) {
                for (let i in node.nodes) {
                    checkAllSon(node.nodes[i]);
                }
            }
        }

        //级联取消所有子节点
        function uncheckAllSon(node) {
            $('#tree').treeview('uncheckNode', node.nodeId, {
                silent: true
            });
            if (node.nodes != null && node.nodes.length > 0) {
                for (let i in node.nodes) {
                    uncheckAllSon(node.nodes[i]);
                }
            }
        }
    </script>
</div>
<!--Describe：选择上级控股-End-->